package com.vision.core.cm.data;

import com.google.gwt.core.client.GWT;
import com.google.gwt.editor.client.Editor.Path;
import com.sencha.gxt.core.client.ValueProvider;
import com.sencha.gxt.data.shared.LabelProvider;
import com.sencha.gxt.data.shared.ModelKeyProvider;
import com.sencha.gxt.data.shared.PropertyAccess;
import com.vision.core.cm.db.data.Company;

/**
 * 
 * @author Mark
 *
 */
public interface CompanyProperties extends PropertyAccess<Company> {

	public static CompanyProperties INSTANCE = GWT.create(CompanyProperties.class);
	
	@Path("id")
	ModelKeyProvider<Company> key();
	
	@Path("name")
	LabelProvider<Company> nameLabel();
	
	ValueProvider<Company, Long> id();
	ValueProvider<Company, String> code();
	ValueProvider<Company, String> name();
	ValueProvider<Company, String> address();
	ValueProvider<Company, String> phone();
	ValueProvider<Company, String> fax();

}
